startActivity

open fun startActivity(@NonNull context: Context, @NonNull intent: Intent, @Nullable options: Bundle)(source)

Deprecated

Call startActivity directly.

Start an activity with additional launch information, if able.

In Android 4.1+ additional options were introduced to allow for more control on activity launch animations. Applications can use this method along with ActivityOptionsCompat to use these animations when available. When run on versions of the platform where this feature does not exist the activity will be launched normally.

Parameters

context

Context to launch activity from.

intent

The description of the activity to start.

options

Additional options for how the Activity should be started. May be null if there are no options. See ActivityOptionsCompat for how to build the Bundle supplied here; there are no supported definitions for building it manually.